<?php use_helper('Javascript') ?>


<ul id="ebul_cbindex_<?php echo $f->getId() ?>" class="ebul_cbindex" style="display: none;">
<li><a ><b><?php echo $f ?></b></a></li>
<li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_1.gif')"></span>
                <?php 
                echo link_to_remote(__('Добавить материал'), array(
			    'update' => 'add_material_form',
                'script'=>'true',
			    'url'    => 'material/show_material_form?node='.$f->getId(),
			    'loading'  => "Element.show('add_material_indicator');Element.hide('materials');",
			    'complete' => "Element.hide('add_material_indicator');bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });",
			    ));
                ?>	
</li>
<li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_2.gif')"></span>

                    <a>Создать каталог</a>
                 


  <ul id="ebul_cbindex_<?php echo $f->getId() ?>_2">
  
                <?php if($f->getLevel()>0):?>
                <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_3.gif')"></span>
  
                <?php echo link_to_remote(__('Рядом с каталогом'), array(
				    'update' => 'add_folder_form',
				    'url'    => 'folder_tools/show_folder_form?near=true&id='.$f->getId(),
		 		    'loading'  => "Element.show('add_folder_indicator');",
				    'complete' => "Element.hide('add_folder_indicator');",
				)) ?>
				  </li>
				<?php endif ?>
  
  

  <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_4.gif')"></span>
  
				  <?php echo link_to_remote(__('Внутри каталога'), array(
				    'update' => 'add_folder_form',
				    'url'    => 'folder_tools/show_folder_form?id='.$f->getId(),
				    'loading'  => "Element.show('add_folder_indicator');",
				    'complete' => "Element.hide('add_folder_indicator');",
				)) ?>	
  
  </li>
  </ul></li>
<li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_5.gif')"></span>

<?php echo link_to(__('Материалы каталога'), 'material/filter?material_filters[mat2_folder_list]='.$f->getId().'&filter=filter')?>


</li>
<li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_6.gif')"></span><a title="">Операции с каталогом</a>
  <ul id="ebul_cbindex_<?php echo $f->getId() ?>_6">
  <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_7.gif')"></span>
  
  				<?php 

                echo link_to_remote(__('Редактировать'), array(
			    'update' => 'add_folder_form',
			    'url'    => 'folder_tools/show_folder_form?edit_id='.$f->getId(),
			    'loading'  => "Element.show('my_folders_indicator')",
			    'complete' => "Element.hide('my_folders_indicator');",
			    ));

				?>
  
  </li>
  <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_8.gif')"></span>
  
				  <?php echo link_to(__('Удалить'), 'folder_tools/delete_folder?id='.$f->getId()) ?>

  </li>
  
  
  <?php if($f->retrievePrevSibling()):?>
  <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_9.gif')"></span>
  <?php 
  				echo link_to(__('Переместить вверх'), 'folder_tools/move_folder_up?node='.$f->getId());
				
  ?>
  </li>
  <?php endif ?>
  
  
  <?php if($f->retrieveNextSibling()): ?>
  <li><span class="ebul_imgcbindex16x16" style="background-image: url('/images/menu/cbsiicbindex_10.gif')"></span>
                <?php 
               echo link_to(__('Переместить вниз'),'folder_tools/move_folder_down?node='.$f->getId());
                  ?>
   </li>               
  <?php endif ?>
  
  </ul></li>
</ul>




